<template>
  <div
    id="app"
    :style="{ background: `url(${backgroundImgUrl})`, backgroundSize: 'cover' }"
  >
    <nav>
      <router-link to="/about">关于</router-link> |
      <router-link to="/china">中国疫情地图</router-link>
    </nav>
    <router-view />
  </div>
</template>


<script>
export default {
  data() {
    return {
      backgroundImgUrl: require("./assets/bg.jpg"),
    };
  },
};
</script>

<style lang="scss">
* {
  padding: 0;
  margin: 0;
}
#app {
  width: 100%;
  height: 100%;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: white;
}

nav {
  padding: 30px;

  a {
    font-size: 30px;
    text-decoration: none;
    font-weight: bold;
    color: white;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
